package com.crm.system.service.customerManager;

import com.crm.common.model.DhPageInfo;
import com.crm.model.qo.customerManager.CustomerReturnQO;
import com.crm.model.vo.customerManager.CustomerReturnVO;

/**
 * @ Author ：pym
 * @ Date   ：2021/1/22 16:27
 */
public interface CustomerReturnService {

    /**
     * 新增一条客户退回/释放记录
     * @param accountId    ---账号ID
     * @param customerId   ---客户ID
     * @param returnType   ---退回类型(1:管理端收回; 2:用户端释放)
     * @param returnReason ---退回原因
     * @return
     */
    Boolean insertCustomerReturn(String accountId,String customerId,String returnType,String returnReason);

    /**
     * 系统收回客户记录
     * @param pageIndex
     * @param pageSize
     * @param moveCustomerQO
     * @param sortName
     * @param sortOrder
     * @return
     */
    DhPageInfo<CustomerReturnVO> getSysCustomerReturnList(Integer pageIndex, Integer pageSize, CustomerReturnQO moveCustomerQO, String sortName, String sortOrder);
}
